find time of run for python code

33

find time of run for python code -

import time
start_time = time.time()
main()
print("--- %s seconds ---" % (time.time() - start_time))

Comments

Submit
0 Comments